﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="Pricing_stages.aspx.cs" Inherits="School.Pages.Bus.Pricing_stages" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table align="right" dir="rtl" style="width: 964px">
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </td>
        </tr>
        <tr>
            <td>
                المجمع
            </td>
            <td>
                <asp:DropDownList ID="ddCamp1" runat="server" DataTextField="Name" DataValueField="Id"
                    Width="200px" AppendDataBoundItems="True" AutoPostBack="True" OnSelectedIndexChanged="ddCamp1_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddCamp1"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="bu" InitialValue="-1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                الشهادة
            </td>
            <td>
                <asp:DropDownList ID="ddlCertificate" runat="server" DataTextField="Name" DataValueField="Id"
                    Width="200px" AppendDataBoundItems="True" AutoPostBack="True" OnSelectedIndexChanged="ddlCertificate_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlCertificate"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" ValidationGroup="bu" InitialValue="-1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Literal ID="lbltestBus" runat="server" Visible="False"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
               <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>--%>
                        <asp:GridView ID="gvstage" runat="server" 
                            AlternatingRowStyle-CssClass="GridItemAltername" AutoGenerateColumns="False" 
                            CssClass="Grid" DataKeyNames="Id,Certificate_Id" 
                            FooterStyle-CssClass="GridHeaderFooter" HeaderStyle-CssClass="GridHeaderFooter" 
                            OnRowDataBound="gvstage_RowDataBound" PagerStyle-CssClass="GridPager" 
                            ShowFooter="True" Width="80%">
                            <AlternatingRowStyle CssClass="GridItemAltername" />
                            <Columns>
                                <asp:BoundField DataField="Name" HeaderText="المرحلة" ReadOnly="True" 
                                    SortExpression="Name">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:TemplateField>
                                    <FooterTemplate>
                                        <table align="left" dir="ltr" style="width: 100%; float: left">
                                            <tr>
                                                <td align="center">
                                                    <asp:Button ID="btnsave" runat="server" CssClass="graybutton" 
                                                        OnClick="btnsave_Click" Text="حفظ" />
                                                </td>
                                            </tr>
                                        </table>
                                    </FooterTemplate>
                                    <ItemTemplate>
                                        <table align="right" dir="rtl" style="width: 100%; float: right">
                                            <tr>
                                                <td nowrap="nowrap" style="width: 115px">
                                                    <asp:RadioButton ID="rdbvall" runat="server" AutoPostBack="True" GroupName="in" 
                                                        OnCheckedChanged="rdbvall_CheckedChanged" Text="قيمة الزيادة للمرحلة" />
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtvall" runat="server" Enabled="False"></asp:TextBox>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 115px">
                                                    <asp:RadioButton ID="rdvpall" runat="server" AutoPostBack="True" GroupName="in" 
                                                        OnCheckedChanged="rdvpall_CheckedChanged" Text="نسبة الزيادة للمرحلة" />
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtpall" runat="server" Enabled="False"></asp:TextBox>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 115px">
                                                    <asp:RadioButton ID="rdbvclass" runat="server" AutoPostBack="True" 
                                                        GroupName="in" OnCheckedChanged="rdbvclass_CheckedChanged" 
                                                        Text="قيمة الزيادة للصف" />
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtvclass" runat="server" Enabled="False"></asp:TextBox>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 115px">
                                                    <asp:RadioButton ID="rdbpclass" runat="server" AutoPostBack="True" 
                                                        GroupName="in" OnCheckedChanged="rdbpclass_CheckedChanged" 
                                                        Text="نسبة الزيادة للصف" />
                                                </td>
                                                <td nowrap="nowrap">
                                                    <asp:TextBox ID="txtpclass" runat="server" Enabled="False"></asp:TextBox>
                                                </td>
                                                <td nowrap="nowrap">
                                                    &nbsp;
                                                </td>
                                                <td nowrap="nowrap">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle CssClass="GridHeaderFooter" />
                            <HeaderStyle CssClass="GridHeaderFooter" />
                            <PagerStyle CssClass="GridPager" />
                        </asp:GridView>
           <%--         </ContentTemplate>
                </asp:UpdatePanel>--%>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:HiddenField ID="HFtxtpclass" runat="server" />
                <asp:HiddenField ID="Hftxtvclass" runat="server" />
                <asp:HiddenField ID="HFtxtvall" runat="server" />
                <asp:HiddenField ID="HFtxtpall" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
